﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace MvcWeb.ViewModels.User
{
    public class UserModel
    {
        public Guid UserId { get; set; }
        [Display(Name = "登录名")]
        [Required]
        [Remote("Exist", "User", ErrorMessage = "登录名已存在")]
        public string UserName { get; set; }
        [Display(Name = "真实姓名")]
        public string RealName { get; set; }
        [Display(Name = "所属部门")]
        public int DeptId { get; set; }
        [Display(Name = "所属部门")]
        public string DeptName { get; set; }
        public string[] RoleList { get; set; }
        public string[] AllRoleList { get; set; }
        public string Error { get; set; }
    }
}